<?php
$form = $this->beginWidget("CActiveForm", array(
	'id' => 'upload-form',
	'enableAjaxValidation' => false,
	'htmlOptions' => array('enctype' => 'multipart/form-data')
));

// echo $form->errorSummary($user);

echo $form->labelEx($user,'id_facebook');
echo $form->textField($user, 'id_facebook');
echo $form->error($user,'id_facebook');
echo "<br>";
echo $form->labelEx($user, 'name');
echo $form->textField($user, 'name');
echo $form->error($user, 'name');
echo "<br>";
echo $form->labelEx($user,'photo_path');
echo $form->fileField($user, 'photo_path');
echo $form->error($user, 'photo_path');
echo "<br>";

echo CHtml::submitButton('Guardar');

$this->endWidget();

echo CHtml::link("Volver", array("index"));